BUILDTIME = `date +%FT%T`

tools:
	go get github.com/golang/protobuf/protoc-gen-go@v1.5.1
	go get github.com/google/wire/cmd/wire@v0.5.0
	#go get golang.org/x/tools/cmd/stringer@v0.1.0

# 代码生成部分
pbclear:
	find app/biz -type f -name "*.pb.go" -delete

pbgen: pbclear
	go generate ./app/biz/...

wire:
	wire ./app/...

codegen: tools pbgen wire

image: 
	docker build -t aquaman:v1  -f ./build/Dockerfile .

docker:
	docker-compose up -d --build

run: image docker


